%
 use "/Users/arashpourebrahimi/Desktop/Project EU Network/FINAL SUBMISSION & REPLICATION 2024/Replication/STATA/STATA_3d_std.dta"
%
log close
log using std.log, replace 
% make pairs as id pairs for panel
encode PAIR_UNIQUE, generate(PARid) label(PAIR_UNIQUE)
% Set up panel
 xtset PARid id

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Standardized

%%% Models:
% 1) Model 1 -> 1) Support A) Euclidean
% Table S.7 Model 1 

xtreg Binary_Decision_same_std Euclidean_std Total_Positive_Distance_std Power_Distance_std Net_Contribution_Same_std Old_New_Same_std, re 




% 2) Model 2 -> 1) Support B) left/right - EU Anti/Pro
% Table S.7 Model 2 

xtreg Binary_Decision_same_std LEFT_RIGHT_std LIBERTY_AUTHORITY_std EU_ANTI_PRO_std Total_Positive_Distance_std Power_Distance_std Net_Contribution_Same_std Old_New_Same_std, re 




% 3) Model 3 -> 2) Vote A) Euclidean
% Table S.7 Model 3 

xtreg Decision_Same_std Euclidean_std Total_Positive_Distance_std Power_Distance_std Net_Contribution_Same_std Old_New_Same_std, re 




% 4) Model 4 -> 2) Vote B) left/right - EU Anti/Pro
% Table S.7 Model 4 

xtreg Decision_Same_std LEFT_RIGHT_std LIBERTY_AUTHORITY_std EU_ANTI_PRO_std Total_Positive_Distance_std Power_Distance_std Net_Contribution_Same_std Old_New_Same_std, re 






% 5) Model 5 -> 3) Distance A) Euclidean
% Table S.7 Model 5 

xtreg Decision_Distance_std Euclidean_std Total_Positive_Distance_std Power_Distance_std Net_Contribution_Same_std Old_New_Same_std, re 




% 6) Model 6 -> 3) Distance B) left/right - EU Anti/Pro
% Table S.7 Model 6 

xtreg Decision_Distance_std LEFT_RIGHT_std LIBERTY_AUTHORITY_std EU_ANTI_PRO_std Total_Positive_Distance_std Power_Distance_std Net_Contribution_Same_std Old_New_Same_std, re 






